package com.baraka.musoft.gallery.services;

import javax.jws.WebMethod;
import javax.jws.WebParam.Mode;
import javax.jws.WebService;
import javax.jws.WebParam;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlElement;

@WebService(name = "WebServiceUno")
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.BARE)
public class HelloWorld {

	@WebMethod(operationName = "HolaMundo")	
	@XmlElement(required=true) 
	public String HolaMundo(@WebParam(name = "nombre",mode=Mode.IN) String nombre) {
		System.out.println("Holao! Te saluda " + nombre);
		return "Hola "+nombre;
	}

}
